package com.hdax.dmw.scheduler.service;

import com.hdax.dmw.common.utils.Result;
import com.hdax.dmw.entity.scheduler.SchedulerSeat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hdax.dmw.scheduler.dtos.SchedulerDto;
import com.hdax.dmw.scheduler.dtos.SeatArrayDto;

import java.util.List;

/**
* @author guoyisha
* @description 针对表【dm_scheduler_seat(排期座位表)】的数据库操作Service
* @createDate 2023-07-24 14:56:40
*/
public interface SchedulerSeatService extends IService<SchedulerSeat> {

    //查询所有出售的座位数量
    int getSaleCount(Long scheduleId,Integer areaLevel);

    List<SchedulerSeat> seatInfoList(Long scheduleId);

    Result<SeatArrayDto> seatArray(Long scheduleId);

    SchedulerSeat detail(Long scheduleId, Integer x, Integer y);

    boolean updateSeats(String jsonStr);
}
